package freespiritsocial.io.user.ui.adapter.search

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.HistoryResultPojo
import freespiritsocial.io.user.databinding.ItemSearchHistoryBinding
import java.util.*

/**
 * for you people 页面
 */
class SearchHistoryAdapter(
    data: ArrayList<HistoryResultPojo> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_search_history
):
    BaseQuickAdapter<HistoryResultPojo,BaseDataBindingHolder<ItemSearchHistoryBinding>>(layoutResIdRes,data) {
    override fun convert(holder: BaseDataBindingHolder<ItemSearchHistoryBinding>,item: HistoryResultPojo) = with(holder.dataBinding) {
        this?.name = item.content
    }
}